package org.example.myleet.p623;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.Parser;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue("[1,2,3,4,null,null,null,5,5]".equals(solution.addOneRow(Parser.parse(new Integer[]{1,2,3,4}), 5, 4).serialize()));
        Assert.isTrue("[1,4,null,2,6,3,1,5]".equals(solution.addOneRow(Parser.parse(new Integer[]{4,2,6,3,1,5}), 1, 1).serialize()));
        Assert.isTrue("[4,1,1,2,null,null,6,3,1,5]".equals(solution.addOneRow(Parser.parse(new Integer[]{4,2,6,3,1,5}), 1, 2).serialize()));
        Assert.isTrue("[4,2,null,1,1,3,null,null,1]".equals(solution.addOneRow(Parser.parse(new Integer[]{4,2,null,3,1}), 1, 3).serialize()));
    }
}
